<?php  $this->pageTitle=Yii::app()->name . ' - Register';?>
<? 
$h3 = 'Register - Add new user by admin';
$h4 = 'Fill the form';
$this->renderPartial('_menu_manage_users', array('h3'=>$h3));?>

<h4><?=$h4?></h4>




<div class="grbac">
  <?php echo CHtml::form(); ?>
  <?$form->scenario='admin_register';?>
		<?php echo CHtml::activeLabelEx($form,'username'); ?>
		<?php echo CHtml::activeTextField($form,'username') ?><br />

		<?php echo CHtml::activeLabelEx($form,'email'); ?>
        <?php echo CHtml::activeTextField($form,'email',array('maxlength'=>255)); ?><br />
        
          <?php echo CHtml::activeLabelEx($form,'passwordNew'); ?>
          <?php echo CHtml::activePasswordField($form,'passwordNew',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />

		  <?php echo CHtml::activeLabelEx($form,'passwordNew_repeat'); ?>
          <?php echo CHtml::activePasswordField($form,'passwordNew_repeat',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />

		  <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
          <?php echo CHtml::activeCheckBox($form,'rememberMe'); ?> Send me updates ...<br />

          <?php if(extension_loaded('gd')): ?>
                  <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
                  <?php $this->widget('CCaptcha', array('showRefreshButton' => true)); ?><br />

                  Please enter the letters as they are shown in the image above. Letters are not case-sensitive.<br />

                  <?php echo CHtml::activeLabelEx($form,'captcha'); ?>
                  <?php echo CHtml::activeTextField($form, 'captcha', array('size'=>10, 'value'=>'', 'autocomplete'=>'off')); ?><br />
          <?php endif; ?>

          <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
          <?php echo CHtml::submitButton('Register'); ?><p>&nbsp;</p>

	  <?php echo CHtml::errorSummary($form); ?> 
  </form>
</div>
